/* main.c */

#include "app_inc.h"

int main(void)
{
    /* Initialize the board. */
    BSP_InitSystem();
    BSP_InitStdioUART(115200);
    BSP_InitLEDGPIO();
    
    printf("\r\nBlinky_GetChar Project.\r\n");

    /* LED. */
    GPIO_SetPinLogic(BSP_GPIO_LED1_PORT, BSP_GPIO_LED1_PIN, true);
    GPIO_SetPinDir(BSP_GPIO_LED1_PORT, BSP_GPIO_LED1_PIN, true);

    printf("Press any key to blink the LED ...\r\n");
    
    while (1)
    {
        getchar();
        GPIO_TogglePinLogic(BSP_GPIO_LED1_PORT, BSP_GPIO_LED1_PIN);
    }
}

/* EOF. */

